<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>booktypes</title>

<script type="text/javascript" src="<%=path %>/assets/js/jquery.min.js"></script>

</head>
<body>
typeName:${bookType.typeName }
<br />
typeName:${bookType.typeDesc }
<br />
typeFamily:${bookType.typeFamily }
<br />
typeValid:${bookType.typeValid }
<br />
成功！
<br />
<button id="jsonTest">json</button>


<script type="text/javascript">

$(function(){
	console.info('jquery 测试！');
});

$(function(){
	$('#jsonTest').click(function(){
		$.ajax({
			type : 'post',
			url : '<%=path %>/v1/booktypes',
			cache : false,
			dataType : 'json',
			success : function(data) {
				console.info(data);
			}
		});
	});
})
</script>

</body>
</html>